package 线程安全问题.关于synchronized.银行账户模拟.Test01;

public class Test01 {
    public static void main(String[] args) {
        Account act = new Account("176",10000);
        Thread t1 = new Thread(new AccountThread(act));
        Thread t2 = new Thread(new AccountThread(act));
        t1.setName("t1");
        t2.setName("t2");
        t1.start();
        t2.start();

    }
}
